<%-- 
    Document   : index
    Created on : Jul 7, 2011, 1:23:40 AM
    Author     : Thanhluan216
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<jsp:include page="header.jsp"></jsp:include>
            <div id="main">
                <div id="slidebar">
                    <div id="login">
                        <jsp:include page="login.jsp"></jsp:include>
                    </div>
                    <div id="search">
                        <jsp:include page="search.jsp"></jsp:include>
                    </div>
                    <div id="product">
                        <jsp:include page="categorypanel.jsp"></jsp:include>
                    </div>
                </div>
                <div id="content">
                    Search <b>${photoname}</b>
                    <c:forEach items="${result}" var="res">
                        <c:if test="${j==0}">
                            <tr>
                        </c:if>
                        <c:set value="${j+1}" var="j"/>
                        <td>
                            <table width="200" border="1">
                                <tr>
                                    <th colspan="3" scope="col">${res.photoName} </th>
                                </tr>
                                <tr>
                                    <td colspan="3"><img src="${res.serverFile}" width="200" height="150" /></td>
                                </tr>
                                <tr>
                                    <td>Upload date:${res.serverFile} </td>
                                    <td>View: ${res.views}</td>
                                    <td>Download: ${res.downloads}</td>
                                </tr>
                            </table>
                        </td>
                        <c:if test="${j==3}">
                            </tr>
                            <c:set var="j" value="${j+1}"/>
                        </c:if>
                    </c:forEach>
                </div>
            </div>
            <div id="footer">

            </div>
        </div>
    </body>
</html>
